Trap the case where there is no default widget and the entry is the focus
authorOwen Taylor <otaylor@redhat.com>
Mon, 21 Jan 2002 17:04:47 +0000 (17:04 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 21 Jan 2002 17:04:47 +0000 (17:04 +0000)
Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkentry.c (gtk_entry_real_activate): Trap the
        case where there is no default widget and the entry
        is the focus widget, since this also causes infinite
        recursion. (#69158)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentry.c

index 8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03..5d3fdf389e7122243ece93f6da66b3565dea925b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
+       case where there is no default widget and the entry
+       is the focus widget, since this also causes infinite
+       recursion. (#69158)
+
 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
index 8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03..5d3fdf389e7122243ece93f6da66b3565dea925b 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
+       case where there is no default widget and the entry
+       is the focus widget, since this also causes infinite
+       recursion. (#69158)
+
 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
index 8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03..5d3fdf389e7122243ece93f6da66b3565dea925b 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
+       case where there is no default widget and the entry
+       is the focus widget, since this also causes infinite
+       recursion. (#69158)
+
 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
index 8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03..5d3fdf389e7122243ece93f6da66b3565dea925b 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
+       case where there is no default widget and the entry
+       is the focus widget, since this also causes infinite
+       recursion. (#69158)
+
 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
index 8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03..5d3fdf389e7122243ece93f6da66b3565dea925b 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
+       case where there is no default widget and the entry
+       is the focus widget, since this also causes infinite
+       recursion. (#69158)
+
 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
index 8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03..5d3fdf389e7122243ece93f6da66b3565dea925b 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
+       case where there is no default widget and the entry
+       is the focus widget, since this also causes infinite
+       recursion. (#69158)
+
 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
index 8d15a4bd8ab8e34bcffe16a4e81f1f92b8b06c03..5d3fdf389e7122243ece93f6da66b3565dea925b 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 21 11:56:31 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkentry.c (gtk_entry_real_activate): Trap the 
+       case where there is no default widget and the entry
+       is the focus widget, since this also causes infinite
+       recursion. (#69158)
+
 Mon Jan 21 11:46:39 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdk.c (gdk_init_check): Set the fallback program class here,
index 77c04a902020b174938c9f09284fb51e1f02d8aa..1d1f7d8c353ac4bae3df461babe9e2dfcb30eaf9 100644 (file)
@@ -2229,7 +2229,9 @@ gtk_entry_real_activate (GtkEntry *entry)
        {
          window = GTK_WINDOW (toplevel);
       
-         if (window && window->default_widget != widget)
+         if (window &&
+             widget != window->default_widget &&
+             !(!window->default_widget && widget == window->focus_widget))
            gtk_window_activate_default (window);
        }
     }